#!C:\Python26\python.exe
 
print "Content-Type: text/html\n\n"
import MySQLdb as mdb
 
 
db = mdb.connect("localhost","root","ayaxyz1425gg","python" )
cursor = db.cursor(mdb.cursors.DictCursor)
cursor.execute("SELECT * FROM entries")
data = cursor.fetchall()
for i in data :
    print i['id'] 
    print i['title']
    print i['contents']
db.close()